//package org.ricks.net.kcp;
//
//import org.ricks.common.lang.Logger;
//import org.ricks.common.utils.ThreadUtils;
//import org.ricks.net.AioSession;
//import org.ricks.net.transport.kcp.KcpSession;
//import org.ricks.protocol.ByteBuf;
//import proto.common.FProto;
//import proto.common.LifeArgs;
//import proto.common.PBLifeType;
//
//import java.util.HashMap;
//import java.util.HashSet;
//import java.util.Map;
//import java.util.Set;
//import java.util.concurrent.Executors;
//import java.util.concurrent.ScheduledExecutorService;
//
//public class RobotAction {
//
//
//
//    public static void robotStart (KcpSession aioSession) {
//
////        RobotLifeAction.startCookTask( aioSession);
////        ThreadUtils.sleep(1000L);
////        RobotLifeAction.startHandicraftTask(aioSession);
////        ThreadUtils.sleep(1000L);
////        RobotLifeAction.startSpinTask(aioSession);
////        ThreadUtils.sleep(1000L);
////        RobotGachaAction.startGachaTask(aioSession,100);
////        ThreadUtils.sleep(1000L);
////        RobotRoleAction.starRoleAction(aioSession);
//        ThreadUtils.sleep(1000L);
//        RobotStageAction.startKillMonsterAction(aioSession);
//    }
//
//
//    public static void addItem(KcpSession session, int itemId , int count) {
//        FProto fProto = FProto.newBuilder()
//                .setKey(FProto.Key.Player)
//                .setAction(FProto.Action.GM)
//                .setGmCmd("itemAdd " + itemId + " " + count)
//                .build();
//
//        Logger.info(RobotManager.get(session).toString() + " 开始增加道具Id:" + itemId + " , 道具num：" + count);
//
//        byte[] data = fProto.toByteArray();
//
//        ByteBuf buf = new ByteBuf(1024);
//        buf.writeByte((byte) 0x03);
//        buf.writeBytes(data);
//
//        session.send(buf.toArray());
//    }
//
//}
